import Vue from 'vue'
import App from './day10-router.vue'
import './iconfont/iconfont.css'
import './iconfont/iconfont'
import router from './router'

import MyLogin from '@/components/my-login.vue'

Vue.component('my-login', MyLogin)
Vue.directive('color', {
  inserted(el, arg) {
    el.style.color = arg.value
  },
  update(el, arg) {
    el.style.color = arg.value
  },
})
Vue.directive('color1', {
  inserted(el) {
    el.style.color = 'green'
  },
})

Vue.config.productionTip = false

new Vue({
  router,
  render: (h) => h(App),
}).$mount('#app')
